﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PRO.Public;
using System.Data;
using PRO.Admin;

namespace web.Manage.member
{
    public partial class _default : ManageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
             Bind();
        }
        private void Bind()
        {
            int counts=0;
            int pages=0;
            this.Pager1.PageSize = 15;
            DataTable dt = PublicLib.CutPage("Pro_User", "id", "regdate desc", this.Pager1.PageIndex, this.Pager1.PageSize, "id,username,pwd,nick,regdate", "", "", out pages, out counts);
            this.Pager1.RecordCount = counts;
            this.Repeater1.DataSource = dt;
            this.Repeater1.DataBind();
        }

        protected void Pager1_PageIndexChanging(object sender, PRO.Controls.Pager.NumericaArgs e)
        {
            this.Pager1.PageIndex = e.NewPageIndex;
            Bind();
        }
    }
}